package com.wanwu.channel.constants;

public class CommonConstants {

    //交易结果：0：未完成，1：支付成功，2：支付失败，3：收货成功，4：收货失败
    public static final Integer TRADE_RESULT_INIT = 0;
    public static final Integer TRADE_PAY_RESULT_SUCCESS = 1;
    public static final Integer TRADE_PAY_RESULT_FAIL = 2;
    public static final Integer TRADE_DELIVERY_RESULT_SUCCESS = 3;
    public static final Integer TRADE_DELIVERY_RESULT_FAIL = 4;

    //交易回调结果：1：成功，2：失败
    public static final Integer TRADE_PAY_NOTIFY_RESULT_SUCCESS = 1;
    public static final Integer TRADE_PAY_NOTIFY_RESULT_FAIL = 2;

    //收货回调结果：1：成功，2：失败
    public static final Integer TRADE_DELIVERY_NOTIFY_RESULT_SUCCESS = 1;
    public static final Integer TRADE_DELIVERY_NOTIFY_RESULT_FAIL = 2;

    //交易回调结果：1：现场交易，2：担保交易
    public static final Integer TRADE_TYRPE_ON_SPOT = 1;
    public static final Integer TRADE_TYRPE_GUARANTEE  = 2;

    //订单状态：1：待生成收银台链接，2：待支付，3：待收货，4：交易完成
    public static final Integer TRADE_STATUS_LINK = 1;
    public static final Integer TRADE_STATUS_PAY = 2;
    public static final Integer TRADE_STATUS_DELIVERY = 3;
    public static final Integer TRADE_STATUS_FINISH = 4;
}
